# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=util-macros
pkgver=1.19.3
pkgrel=0
pkgdesc="X.Org Autotools macros"
url="https://xorg.freedesktop.org"
arch="noarch"
license="MIT"
source="https://www.x.org/releases/individual/util/util-macros-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install

	mkdir -p "$pkgdir"/usr/lib
	mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib
}

sha512sums="b9c7398a912c688a782eab5b1e0f6da2df11a430775c5c98fc3269f73a665de6eeb60d300a849e38d345714a6e51f74e9334cb6039767304cca4b93d823a53a2  util-macros-1.19.3.tar.bz2"
